package com.wh.wisdomsite.xbox.common.reponse;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;


/***
 * 功能说明：通用响应类(xml)
 * @Package com.wh.wisdomsite.xbox.common.reponse
 * @author 谢泽鹏
 * @date 2016年11月07日 下午15:10
 * @Copyright 个人版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2016
 * @version V1.0
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "response")
public class CommonResponse {

    private boolean successful;

    public static final CommonResponse SUCCESSFUL_RESPONSE = new CommonResponse(true);

    public static final CommonResponse FAILURE_RESPONSE = new CommonResponse(false);

    /**
     * 构造函数
     */
    public CommonResponse() {

    }

    public CommonResponse(boolean successful) {
        this.successful = successful;
    }
}
